package com.xuecheng.content.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuecheng.content.model.dto.CourseCategoryTreeDto;
import com.xuecheng.content.model.po.CourseCategory;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 课程分类 Mapper 接口
 * </p>
 *
 * @author ybl
 */
public interface CourseCategoryMapper extends BaseMapper<CourseCategory> {
    /**
     * @author ybl
     * @date 2023/2/25 17:21
     * @description 课程分类树形结构查询
     * @param id 根节点id
     * @return java.util.List<com.xuecheng.content.model.dto.CourseCategoryTreeDto>
     * @since version-1.0
     */
    List<CourseCategoryTreeDto> selectTreeNodes(String id);
}
